@echo off
chcp 65001 >nul
echo ========================================
echo   ORB-SLAM3 3D 重建工具集
echo   www.gdrsgg.com   309647724@qq.com
echo ========================================
echo.

REM 检查Python是否安装
python --version >nul 2>&1
if errorlevel 1 (
    echo ❌ 未检测到Python，请先安装Python 3.8+
    echo    下载地址: https://www.python.org/downloads/
    pause
    exit /b 1
)

echo ✅ Python 已安装
echo.

REM 检查依赖
echo 正在检查Python依赖...
python -c "import numpy, cv2, open3d" >nul 2>&1
if errorlevel 1 (
    echo ⚠️  检测到缺少依赖，正在安装...
    pip install -r requirements-rgbd.txt
    if errorlevel 1 (
        echo ❌ 依赖安装失败
        pause
        exit /b 1
    )
)

echo ✅ Python 依赖已就绪
echo.

REM 启动主程序
echo 🚀 启动图形界面...
echo.
python tools/gui_launcher.py

pause

